package com.cloud.auth;
import com.cloud.common.core.annotation.EnableAuthExceptionHandler;
import com.cloud.common.core.annotation.EnableLettuceRedis;
import com.cloud.common.core.annotation.EnableServerProtect;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Description:
 * @Auther: zhangxun
 * @Date: 2020/8/7 13:38
 */
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableAuthExceptionHandler   //自定义注解，使用@Enable模块驱动的方式加载自定义的类到Spring IOC容器中
@MapperScan("com.cloud.auth.mapper")
@EnableLettuceRedis
@EnableServerProtect
public class AuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class,args);
    }
}